#include <stdio.h>
#include <math.h>
#include <SDL2/SDL.h>
// #include "Resource.h"
#include "topyunplus/Config.h"



SDL_Window *window = NULL;
SDL_Renderer *renderer = NULL;



void event_loop();
void draw();


int main(int args, char *argv[])
{
    if (SDL_Init(SDL_INIT_VIDEO)) {
        SDL_Log("Can not init video, %s", SDL_GetError);
        return 1;
    }

    window = SDL_CreateWindow("SDL2 Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, WINDOW_WIDTH, WINDOW_HEIGHT, SDL_WINDOW_SHOWN);
    if (window == NULL)  {
        SDL_Log("Can not create Window, %s", SDL_GetError());
        return 1;
    }

    renderer = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);
    if (renderer == NULL) {
        SDL_Log("Can not Create Renderer, %s", SDL_GetError());
    }
    

    event_loop();
    void draw();

    SDL_DestroyRenderer(renderer);
    SDL_DestroyWindow(window);
    SDL_Quit();
    
    return 0;
}

void event_loop()
{
}

void draw()
{
    SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255);
    SDL_RenderClear(renderer);

    SDL_RenderPresent(renderer);
}